import qs from 'qs'
import vue from 'vue'

export async function queryUserList (params) {
  let resp = {}
  await vue.axios.post('userRest/queryUserList', qs.stringify(params)).then(response => {
    resp = response
  })
  return resp
}

export async function queryUser (params) {
  let resp = {}
  await vue.axios.post('userRest/queryUser', qs.stringify(params)).then(response => {
    resp = response
  })
  return resp
}

export async function addUser (params) {
  let resp = {}
  await vue.axios.post('userRest/addUser', qs.stringify(params)).then(response => {
    resp = response
  })
  return resp
}

export async function modUser (params) {
  let resp = {}
  await vue.axios.post('userRest/modUser', qs.stringify(params)).then(response => {
    resp = response
  })
  return resp
}

export async function delUser (params) {
  let resp = {}
  await vue.axios.post('userRest/delUser', qs.stringify(params)).then(response => {
    resp = response
  })
  return resp
}
